#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "homepage.h"

HomePage* g_pHomePage = NULL;


MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    this->setWindowFlags(Qt::FramelessWindowHint);
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_btnLogon_clicked()
{
    this->hide();
    g_pHomePage = new HomePage;
    g_pHomePage->show();
}


